import cn.hutool.crypto.SecureUtil;
import cn.simon.mapper.BiliUserMapper;
import cn.simon.model.BiliUser;
import cn.simon.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Before;
import org.junit.Test;

public class test {
    SqlSession sqlSession = null;
    @Before
    public void before(){
        sqlSession = SqlSessionUtil.getSqlSession();

    }

    @Test
    public void selectPassword(){
        BiliUserMapper biliUserMapper = sqlSession.getMapper(BiliUserMapper.class);
        BiliUser biliUser = biliUserMapper.selectByName("开心");
        System.out.println(biliUser);
        System.out.println(SecureUtil.md5("123456"));
    }
}
